<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>主页面</title>
    <div th:insert="base :: resource"></div>
</head>
<body>
<nav th:insert="base :: nav"></nav>
this is main.html!<br>
<h2 th:text="${userName}">无</h2><br>
<h2 th:text="${password}">无</h2><br>
<h2 th:text="${session.loginUser}">无</h2><br>
</body>
</html>